{template 'common/header'}
<div id="louie-list" class="row" data-url="{php echo $this->createWebUrl('api')}">
    <div id="louie-header">
        <h6>兑换提现列表</h6>
    </div>
    <ul class="nav nav-tabs">
        <li v-for="(item,index) in nav" v-bind:class="{'active':item.active}" v-on:click="changeNav(index)"><a href="javascript:;">{{item.name}}</a></li>
    </ul>

    <form ref="allDeposit" action="" method="post" @submit.prevent="allDeposit" v-if="list.length > 0">
        <table class="table table-bordered table-hover" style="margin-top:10px;">
            <tr><th>选择</th><th>uid</th><th>会员昵称</th><th>提现金额</th><th>提现状态</th><th>提现时间</th><th>操作</th></tr>
            <tr v-for="(item,index) in list">
                <td><input type="checkbox" name="deposits" :value="item.id" /></td>
                <td>{{item.uid}}</td>
                <td>{{item.name}}</td>
                <td>{{item.money}}</td>
                <td>
                    <span v-if="item.status == 0">待提现</span>
                    <span v-if="item.status == 1">已成功</span>
                    <span v-if="item.status == 2">拒绝提现</span>
                </td>
                <td>{{item.time}}</td>
                <td>
                    <div class="btn-group btn-group-xs">
                        <button type="button" class="btn btn-success" v-on:click="pass(index)" v-if="item.status == 0" v-bind:disabled="disabled">提现</button>
                        <button type="button" class="btn btn-warning" v-on:click="refuse(index)" v-if="item.status == 0" v-bind:disabled="disabled">拒绝</button>
                        <button type="button" class="btn btn-danger" v-if="item.status != 0" v-on:click="del(index)" v-bind:disabled="disabled">删除</button>
                    </div>
                </td>
            </tr>
            <tr>
                <td><label><input type="checkbox" @change="allSelectChange" /> 全选</label></td>
                <td colspan="8"><button class="btn btn-success btn-sm">批量提现</button></td>
            </tr>
        </table>
    </form>

    <h6 v-else style="font-size:30px;text-align: center;color:#ccc;margin-top:40px;">暂无数据</h6>
    <paging v-on:change-page="changePage" v-bind:total="total" v-bind:return-num="returnNum"></paging>

    <v-dialog style="z-index:99999999;"/><!--提示框-->
</div>
<script src="../addons/kuyuan_vbz/dist/web/finance-list.js"></script>
{template 'common/footer'}
